#include<iostream>
#include<string>
#include<unordered_map>
using namespace std;

class Solution {
public:
    int maxFreqSum(string s) {
        unordered_map<char, int> unmp;
        for (auto e : s) {
            unmp[e]++;
        }
        int yuan_max = 0;
        int fu_max = 0;
        int arr[5] = { 'a', 'e', 'i', 'o', 'u' };
        for (int i = 0; i < 5; i++) {
            yuan_max = max(unmp[arr[i]], yuan_max);
            unmp[arr[i]] = 0;
        }
        for (int i = 0; i < 26; i++) {
            fu_max = max(unmp[i + 'a'], fu_max);
        }
        cout << yuan_max << " " << fu_max << endl;
        return yuan_max + fu_max;
    }
};